package com.yykj.bank.client.feign;

import com.yykj.bank.client.dto.BankInfoDTO;
import com.yykj.bank.client.dto.BankVerifyDTO;
import com.yykj.bank.client.vo.BankVerifyResultVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "bank-server")
public interface BankFeignClient {

    @PostMapping("/api/bank/verify")
    public BankVerifyResultVO verify(@RequestBody BankVerifyDTO dto);

    @ApiOperation("可用银行卡列表")
    @GetMapping("/api/bank/available/bank")
    public List<BankInfoDTO> listAvailableBank();
}
